<template>
	<view>
		<!-- <cu-custom bgColor="bg-blue" :isBack="true">
			<block slot="backText">返回</block>
			<block slot="content">{{desc.title}}</block>
		</cu-custom> -->
		
		<view class="bgcs fff padding-25 font-32">
			<view class="" style="position: absolute;left: 15rpx;">
				<view class="action" @click="back">
					<text style="color: #fff;" class="cuIcon-back"></text>
					返回
				</view>
			</view>
			<view class="w100 text-center">
				{{desc.title}}
			</view>
		</view>
		
		<view v-if="desc">
			<view class="news-top">
				<view class="news-title text-xl text-bold">
					{{desc.title}}
				</view>
				<view class="news-desc">
					<div class="news-time"></div>
				</view>
			</view>
			<view class="line"></view>
			<u-parse :content="desc.content"></u-parse>
		</view>
		<view style="width: 100%;height: 10px;"></view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				desc: null,
			}
		},
		methods: {
			back(){
				uni.navigateBack()
			}
		},
		onLoad(options) {
			let _this = this;
			uni.request({
				url: _this.$globals.apibase + '/api/Index/explain',
				data: {
					id: options.id
				},
				method: 'POST',
				header: {
					'content-type': 'application/json'
				},
				success: (res) => {
					_this.desc = res.data.data.desc;
				}
			});
		}
	}
</script>

<style>
	.bgcs {
		background-color: #0081FF;
	}

	.news-top {
		padding: 0 30upx 10upx;
	}

	.news-header {
		display: flex;
		height: 100upx;
		line-height: 100upx;
	}

	.news-header .uni-icon {
		text-align: left;
		width: 30px;
		color: #694629 !important;
	}

	.news-header .title {
		flex: 1;
		font-size: 36upx;
		text-align: center;
		color: #694629;
		padding-right: 30upx;
	}

	.news-title {
		font-size: 36upx;
		color: #333;
		font-weight: bold;
		padding-top: 30upx;
	}

	.news-desc {
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.news-nav {
		color: #694629;
		border-bottom: 1px solid #694629;
		height: 35upx;
		line-height: 35upx;
	}

	.news-nav .zh {
		font-size: 22upx;
		padding-right: 14upx;
	}

	.news-nav .en {
		font-family: Raavi;
		font-size: 20upx;
	}

	.news-time {
		margin-top: 5%;
		color: #999;
		font-size: 22upx;
	}

	.line {
		background-color: #eee;
		height: 15upx;
	}

	.news-content {
		color: #999;
		font-size: 26upx;
		padding: 10upx 30upx;
	}
</style>